/**
 * Copyright (C) 2010 - 2013 Harry Glasgow
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.googlecode.jaden.ui.dialog.automatic;

import java.util.HashSet;
import java.util.Set;

public class ColumnMetaData {

    public enum Type {Numeric, Date, Categorical}

    private int fileColumnNumber;
    private String heading;
    private Type type;
    private int min = Integer.MAX_VALUE;
    private int max = Integer.MIN_VALUE;
    private Set<String> categories = new HashSet<String>();

    public ColumnMetaData(int fileColumnNumber, String heading) {
        this.fileColumnNumber = fileColumnNumber;
        this.heading = heading;
    }

    public String getHeading() {
        return heading;
    }

    public int getMin() {
        return min;
    }

    public void setMin(int min) {
        this.min = min;
    }

    public int getMax() {
        return max;
    }

    public void setMax(int max) {
        this.max = max;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public Set<String> getCategories() {
        return categories;
    }

    public int getFileColumnNumber() {
        return fileColumnNumber;
    }
}
